package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;


/**
 * 景点预约
 * 数据库通用操作实体类（普通增删改查）
 * @author 
 * @email 
 * @date 2025-03-28 20:35:43
 */
@TableName("scenicspotreservation")
public class ScenicspotreservationEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;


	public ScenicspotreservationEntity() {
		
	}
	
	public ScenicspotreservationEntity(T t) {
		try {
			BeanUtils.copyProperties(this, t);
		} catch (IllegalAccessException | InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	/**
	 * 主键id
	 */
    @TableId(type = IdType.AUTO)
	private Long id;
	/**
	 * 景点名称
	 */
					
	private String scenicspotname;
	
	/**
	 * 景点分类
	 */
					
	private String scenicspotclassification;
	
	/**
	 * 景点图片
	 */
					
	private String scenicspotimage;
	
	/**
	 * 景点地址
	 */
					
	private String scenicspotaddress;
	
	/**
	 * 预约时间
	 */
				
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
	@DateTimeFormat 		
	private Date reservationtime;
	
	/**
	 * 预约备注
	 */
					
	private String reservationremarks;
	
	/**
	 * 用户账号
	 */
					
	private String useraccount;
	
	/**
	 * 用户姓名
	 */
					
	private String username;
	
	/**
	 * 联系电话
	 */
					
	private String contactphone;
	
	/**
	 * 跨表用户id
	 */
					
	private Long crossuserid;
	
	/**
	 * 跨表主键id
	 */
					
	private Long crossrefid;
	
	
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
	private Date addtime;

	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 设置：景点名称
	 */
	public void setScenicspotname(String scenicspotname) {
		this.scenicspotname = scenicspotname;
	}
	/**
	 * 获取：景点名称
	 */
	public String getScenicspotname() {
		return scenicspotname;
	}
	/**
	 * 设置：景点分类
	 */
	public void setScenicspotclassification(String scenicspotclassification) {
		this.scenicspotclassification = scenicspotclassification;
	}
	/**
	 * 获取：景点分类
	 */
	public String getScenicspotclassification() {
		return scenicspotclassification;
	}
	/**
	 * 设置：景点图片
	 */
	public void setScenicspotimage(String scenicspotimage) {
		this.scenicspotimage = scenicspotimage;
	}
	/**
	 * 获取：景点图片
	 */
	public String getScenicspotimage() {
		return scenicspotimage;
	}
	/**
	 * 设置：景点地址
	 */
	public void setScenicspotaddress(String scenicspotaddress) {
		this.scenicspotaddress = scenicspotaddress;
	}
	/**
	 * 获取：景点地址
	 */
	public String getScenicspotaddress() {
		return scenicspotaddress;
	}
	/**
	 * 设置：预约时间
	 */
	public void setReservationtime(Date reservationtime) {
		this.reservationtime = reservationtime;
	}
	/**
	 * 获取：预约时间
	 */
	public Date getReservationtime() {
		return reservationtime;
	}
	/**
	 * 设置：预约备注
	 */
	public void setReservationremarks(String reservationremarks) {
		this.reservationremarks = reservationremarks;
	}
	/**
	 * 获取：预约备注
	 */
	public String getReservationremarks() {
		return reservationremarks;
	}
	/**
	 * 设置：用户账号
	 */
	public void setUseraccount(String useraccount) {
		this.useraccount = useraccount;
	}
	/**
	 * 获取：用户账号
	 */
	public String getUseraccount() {
		return useraccount;
	}
	/**
	 * 设置：用户姓名
	 */
	public void setUsername(String username) {
		this.username = username;
	}
	/**
	 * 获取：用户姓名
	 */
	public String getUsername() {
		return username;
	}
	/**
	 * 设置：联系电话
	 */
	public void setContactphone(String contactphone) {
		this.contactphone = contactphone;
	}
	/**
	 * 获取：联系电话
	 */
	public String getContactphone() {
		return contactphone;
	}
	/**
	 * 设置：跨表用户id
	 */
	public void setCrossuserid(Long crossuserid) {
		this.crossuserid = crossuserid;
	}
	/**
	 * 获取：跨表用户id
	 */
	public Long getCrossuserid() {
		return crossuserid;
	}
	/**
	 * 设置：跨表主键id
	 */
	public void setCrossrefid(Long crossrefid) {
		this.crossrefid = crossrefid;
	}
	/**
	 * 获取：跨表主键id
	 */
	public Long getCrossrefid() {
		return crossrefid;
	}

}
